const { ControllerFinder } = require('../lib/mvcEntity.js');

const controllerFinder = new ControllerFinder();

let realPath =".";
controllerFinder.findController = function(cname){
  let realControllerPath = realPath + "/"+cname+".js";
  let controller = require(realControllerPath);
  return controller;
  
} ;
controllerFinder.initConf=function(pathStr){
   if(pathStr){
	   realPath = pathStr;
   }
}
  
module.exports = controllerFinder;